/*
* jlb
*/
package com.jlb.user.entity;

/**
 * 矿石 的实体类的状态
 * 状态：激活 Active，停止 Stop
 *
 * @author jlb
 */
public enum UserOreState implements java.io.Serializable {
    Active("激活"),
    Stop("停止"),;

    public String val;

    UserOreState(String val) {
        this.val = val;
    }

    /**
     * 根据状态名称查询状态
     *
     * @param stateName
     * @return
     */
    public static UserOreState getEnum(String stateName) {
        for (UserOreState userOreState : UserOreState.values()) {
            if (userOreState.name().equalsIgnoreCase(stateName)) {
                return userOreState;
            }
        }
        return null;
    }

    @Override
    public String toString() {
        return this.name();
    }

}
